package com.meng.mengiotmaster.module.main;

import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.RelativeLayout;
import android.widget.Spinner;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.meng.mengiotmaster.R;
import com.meng.mengiotmaster.utils.UIHelper;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Create by：chenj on 2020/12/28 17:21
 * email：2355727644@qq.com
 */
public class ConnectionActivity extends AppCompatActivity {
    @BindView(R.id.field_item_spinner_content)
    Spinner mFieldItemSpinnerContent;
    @BindView(R.id.tv_tuya_device_lighting_ceiling)
    TextView mTvTuyaDeviceLightingCeiling;
    @BindView(R.id.open_device)
    Button mOpenDevice;
    @BindView(R.id.tuya_device_lighting)
    RelativeLayout mTuyaDeviceLighting;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_connection);
        ButterKnife.bind(this);
    }


    @OnClick({R.id.tv_tuya_device_lighting_ceiling, R.id.open_device})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.tv_tuya_device_lighting_ceiling:
                break;
            case R.id.open_device:
                UIHelper.show2Home(this);
                break;
        }
    }

}
